<?php 
$object=$this->object;
$imageurl=$this->imageurl;

defined('_JEXEC') or die('Restricted access');

AdminUIHelper::startAdminArea ();
?>
<script type="text/javascript">
function limiter(){
	// check name blank
	var name= document.adminForm.lsn_ten.value;
	if(name=="") document.getElementById('loiten').innerHTML="(!)  Not blank.!";
	else  document.getElementById('loiten').innerHTML="";
	// count text comment
	var tex = document.adminForm.lsn_mieuta.value;
	var len = tex.length;
		document.getElementById('limit').innerHTML = "Count : "+len;
			}
</script>
<form name="adminForm" enctype="multipart/form-data" method="post"  onmousemove="limiter()" >
	<input type='hidden' name='task' />
	<input type='hidden' name='id' value='<?php echo $this->id?>' />
	<input type='hidden' name='lsn_id' value='<?php echo $this->id?>' />
	<fieldset>
		<legend><?php echo JText::_('Chi tiết chức vụ')?></legend>
		<table class="admintable">
			<tr>
				<td class="key"><?php echo JText::_('Tên')?></td>
				<td>
					<input  onkeyup="limiter()" style="width:250px;" type="text" name="lsn_ten" value="<?php echo $object->lsn_ten;?>" />
					<b style="color:red;text-align:center;" id="loiten"  ></b>
				</td>
			</tr>
			<tr>
				<td class="key"><?php echo JText::_('Miêu tả')?></td>
				<td>
				<b style="color:blue;width:200px;text-align:center;" id="limit"  ></b><br/>
				<textarea name="lsn_mieuta" onkeyup="limiter()" rows="10" cols="50" ><?php echo $object->lsn_mieuta;?></textarea>
					<?php 
					$ed = &JFactory::getEditor();
					//echo $ed->display('comment',$donvi->dvql_mieuta,600,300,6,array());
					?>
				</td>
			</tr>
		</table>
	</fieldset>
</form>